package edu.unr.cater.npap.client.managed.ui;

import com.google.web.bindery.requestfactory.gwt.ui.client.ProxyRenderer;
import edu.unr.cater.npap.client.proxy.AnalysisTeamProxy;
import edu.unr.cater.npap.client.proxy.ContactProxy;
import edu.unr.cater.npap.client.proxy.DataAccessLogProxy;
import edu.unr.cater.npap.client.proxy.PlatformUserGroupProxy;
import edu.unr.cater.npap.client.proxy.PlatformUserProxy;
import edu.unr.cater.npap.client.proxy.ProjectProxy;
import edu.unr.cater.npap.client.proxy.ReferenceDocumentProxy;
import edu.unr.cater.npap.client.proxy.TransportationImprovementProjectProxy;
import java.util.Set;

public class PlatformUserProxyRenderer extends ProxyRenderer<PlatformUserProxy> {

    private static edu.unr.cater.npap.client.managed.ui.PlatformUserProxyRenderer INSTANCE;

    protected PlatformUserProxyRenderer() {
        super(new String[] { "platformUserName" });
    }

    public static edu.unr.cater.npap.client.managed.ui.PlatformUserProxyRenderer instance() {
        if (INSTANCE == null) {
            INSTANCE = new PlatformUserProxyRenderer();
        }
        return INSTANCE;
    }

    public String render(PlatformUserProxy object) {
        if (object == null) {
            return "";
        }
        return object.getPlatformUserName() + " (" + object.getPlatformUserName() + ")";
    }
}
